<?php
$rand_param=time();
require_once $_site->get_viewpath("mobile/common/authcheck");
require_once $_site->get_viewpath("mobile/common/header");

//查询管理员信息
$admin_objet=new manager();
$cols='id,account,name,`group`,email,master,sex,phone';
$admin_info=$admin_objet->admin_info($cols);
$pos_ary=array(6=>'管理员',10=>'项目经理',12=>'项目助理');
$head_img=array(0=>'01.png',1=>'02.png');

$pid=$admin_info['master']?$admin_info['master']:$admin_id;
$p_num=$admin_objet->project_count($pid);
$d_num=$admin_objet->device_count($pid);
?>	
</head>

	<body>
		<div class="center-header clearfloat" id="header">
			<a href="/mobile/edit?rpid=<?php echo $rand_param;?>" class="fr shezhi">设置</a>
			<div class="top fl clearfloat box-s">
				<a href="/mobile/edit?rpid=<?php echo $rand_param;?>">
					<div class="tu fl">
						<span></span>
						<img src="/static/mobile/img/head/<?php echo $head_img[$admin_info['sex']];?>"/>
					</div>
					<div class="middle clearfloat fl">
						<p class="bt"><?php echo $admin_info['account'];?><span><?php echo $pos_ary[$admin_info['group']];?></span></p>
						<p class="jianjie">
						    <?php echo $admin_info['name']?'姓名：'.$admin_info['name']."<br/>":''; ?>
						    <?php echo $admin_info['phone']?'电话：'.$admin_info['phone']."<br/>":''?>
							<?php echo $admin_info['email']?'邮箱：'.$admin_info['email']:''?>
						</p>
					</div>										
					<i class="iconfont icon-arrowright fr"></i>
				</a>
			</div>
			<div class="bottom clearfloat">
				<ul>
					<li>
						<a href="/mobile/project?rpid=<?php echo $rand_param;?>" class="clearfloat">
							<p><?php echo $p_num;?></p>
							<p>工程项目</p>
						</a>
					</li>
					<li>
						<a href="/mobile/device?rpid=<?php echo $rand_param;?>" class="clearfloat">
							<p><?php echo $d_num;?></p>
							<p>绑定设备</p>
						</a>
					</li>
					<li>
						<a href="/mobile/coupon?id=<?php echo $rand_param;?>" class="clearfloat">
							<p>155</p>
							<p>设备账套</p>
						</a>
					</li>

				</ul>
			</div>
		</div>
		
				
		<div class="clearfloat pcenter" id="main">
				
	
			<div class="p-list p-listwo clearfloat box-s">
				<a href="/mobile/record?id=<?php echo $rand_param;?>" class="clearfloat">
					<i class="iconfont icon-richengbiao fl money"></i>
					<span class="fl">挖机装车</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>

			<div class="p-list p-listhree clearfloat box-s">
				<a href="/mobile/recordtime?id=<?php echo $rand_param;?>" class="clearfloat">
					<i class="iconfont icon-time fl gerenzhongxin"></i>
					<span class="fl">挖机计时</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>
			
			<div class="p-list p-listhree clearfloat box-s">
				<a href="/mobile/recordcar?id=<?php echo $rand_param;?>" class="clearfloat">
					<i class="mui-icon mui-icon-trash fl weituoguanli"></i>
					<span class="fl">渣车登记</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>	
			
			<div class="p-list p-listwo clearfloat box-s">
				<a href="/mobile/recordall?id=<?php echo $rand_param;?>" class="clearfloat">
					<i class="iconfont icon-favorite fl xing"></i>
					<span class="fl">全部记录</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>					

			<div class="p-list p-listwo clearfloat box-s">
				<a href="/mobile/download?id=<?php echo $rand_param;?>" class="clearfloat">
					<i class="iconfont icon-phone fl gerenzhongxin"></i>
					<span class="fl">软件下载</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>
			<div class="p-list p-listhree clearfloat box-s">
				<a href="/mobile/modify?id=<?php echo $rand_param;?>" class="clearfloat">
					<i class="iconfont icon-lock fl lock"></i>
					<span class="fl">修改密码</span>
					<i class="iconfont icon-arrowright fr you"></i>
				</a>
			</div>
            <!--2016-12-23-->
            <div class="p-list cash_box">
            	<div class="cash_u">
                	<i class="mui-icon mui-icon-loop cash_icon"></i>
                    <div class="cash_w">
                    	<h4>磁盘剩余空间</h4>
                        <span><?php echo date('Y-m-d H:i:s',$rand_param);?></span>
                    </div>
                </div>
                <div class="cash_m">
                    <h5 class="cash_h5">12.16<span>GB</span></h5>
                    <p class="cash_p">磁盘空间偏低，请及时释放空间</p>
                </div>
                <div class="cash_d">
                	<a href="">立即转入</a>
                    <a href="">优化投资</a>
                </div>
            </div>
            <div class="p-list cash_box cash_box01">
            	<div class="cash_u">
                	<i class="mui-icon mui-icon-loop cash_icon"></i>
                    <div class="cash_w">
                    	<h4>磁盘剩余空间</h4>
                        <span><?php echo date('Y-m-d H:i:s',$rand_param);?></span>
                    </div>
                </div>
                <div class="cash_m">
                	<div class="cash_01">
                        <h5 class="cash_h5">12.16<span>GB</span></h5>
                        <p class="cash_p">磁盘空间偏低，请及时释放空间</p>
                    </div>
                    <div class="cash_01">
                        <h5 class="cash_h5">12.16<span>GB</span></h5>
                        <p class="cash_p">磁盘空间偏低，请及时释放空间</p>
                    </div>
                </div>
                <div class="cash_d">
                	<a href="">查看</a>
                </div>
            </div>
            <!--2016-12-23-->
			<a href="javascript:;" onclick="confirmget('/handle.php?h=admin/quit&type=wap','是否退出登录 ?');" class="pay-btn clearfloat">退出登录</a>			
			
		</div>	
		
	</body>
</html>